module.exports  = app =>{
    const {controller, router} = app;
    router.get('/list', controller.address.getList);
    router.post('/list', controller.address.addList);
    router.put('/list', app.middleware.auth(), controller.address.editList);
    router.delete('/list/:id',app.middleware.auth(),controller.address.delList);

    router.post('/login', controller.user.login)
    router.post('/register', controller.user.register)
}